calendar object
This method returns the number of hours between two dates.
double diff_hours(calendar@ object)
Parameters:
object
The handle to another valid calendar object.
Return value:
The difference between the current calendar's date and the date of the passed calendar object handle in hours.
Remarks:
Unlike diff_years, this method returns an integer representation of the difference.
Example:
// Find out the number of hours between October 7, 1767 and now.
void main()
{
calendar test;
calendar now;
test.set(1767, 10, 7, 9, 0, 0);
double diff=test.diff_hours(now);
alert("diff_hours", "There are "+diff+" hours between October 7, 1767 and now.");
}